package com.sp.model.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 用于解决redis缓存击穿
 *
 * @author tong
 * @date 2024/4/5 13:17
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class RedisData<T> {

    private LocalDateTime expireTime;

    private T data;

}
